﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pay.DTO {
	/// <summary>
	/// 订单明细：mc_OrderItem
	/// </summary>
	[Serializable]
	public class order_item_dto {
        /// <summary>
        /// 初始化
        /// </summary>
		public order_item_dto() {
			body = new Dictionary<string, object>();
            product = new product_dto();
        }

		/// <summary>
		/// 订单明细id
		/// </summary>
		public long id { get; set; }
		/// <summary>
		/// 订单id
		/// </summary>
		public long order_id { get; set; }
		/// <summary>
		/// 产品id:app传
		/// </summary>
		public long product_id { get; set; }
        /// <summary>
        /// 集市商品id
        /// </summary>
        public long bazaar_product_id { get; set; }
        /// <summary>
        /// 分销用户id
        /// </summary>
        public long? distribution_id { get; set; }
        /// <summary>
        /// 商品分销总金额
        /// </summary>
        public decimal distribute_price { get; set; }
		/// <summary>
		/// 购买数量:app传
		/// </summary>
		public int quantity { get; set; }
		/// <summary>
		/// 单价:app传
		/// </summary>
		public decimal unit_price { get; set; }
		/// <summary>
		/// 商品名称:app传
		/// </summary>
		public string product_name { get; set; }
		/// <summary>
		/// 缩略图:app传
		/// </summary>
		public string thumbnails_url { get; set; }
        /// <summary>
        /// 规格id
        /// </summary>
        public long? sku_id { get; set; }
		/// <summary>
		/// 规格名称:app传
		/// </summary>
		public string sku_name { get; set; }
		/// <summary>
		/// 规格路径:app传
		/// </summary>
		public string sku_path { get; set; }
		/// <summary>
		/// 市场价格:app传
		/// </summary>
		public decimal market_price { get; set; }
		/// <summary>
		/// 抵扣积分:app传
		/// </summary>
		public int integral { get; set; }
		/// <summary>
		/// 积分抵扣金额
		/// </summary>
		public decimal integral_rate { get; set; }
		/// <summary>
		/// 赠送积分
		/// </summary>
		public int points { get; set;}
        /// <summary>
        /// 毛重
        /// </summary>
        public double grossweight { get; set; }
        /// <summary>
        /// 法定重量
        /// </summary>
        public double legalweight { get; set; }
        /// <summary>
        /// 产品活动Id
        /// </summary>
        public long? product_activity_id { get; set; }
        /// <summary>
        /// 订单明细来源类型：1海淘乐，2候鸟 6集市 7实人认证
        /// </summary>
        public int? order_item_type { get; set; }
        /// <summary>
        /// 活动类型 0：无，1：398创客活动，2：限时购活动，3：红钻+现金，4：红钻兑换
        /// </summary>
        public int active_type { get; set; }
        /// <summary>
        /// 红砖数量
        /// </summary>
        public decimal red_drill { get; set; }
        /// <summary>
        /// 扩展字段【仅供用于红砖业务】
        /// </summary>
        public bool isCashPay { get; set; }
        /// <summary>
        /// 扩展内容:app传
        /// </summary>
        public Dictionary<string, object> body { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public product_dto product { get; set; } 
        /// <summary>
        /// 集市商品
        /// </summary>
        public token_bazaar_product_dto bazaar_product { get; set; }
        /// <summary>
        /// 分销用户
        /// </summary>
        public merchant_dto dis_user { get; set; }
	}
}